package com.gict.antifraudback.exception;

import com.gict.antifraudback.enums.IResponseEnum;
import com.gict.antifraudback.result.ResultEnum;

/**
 * 自定义异常类
 */
public class BusinessException extends MyException {
    private static final long serialVersionUID = 1L;

    public BusinessException(String message){
        super(ResultEnum.CODE_2, message);
    }

    public BusinessException(IResponseEnum responseEnum, Object[] args, String message) {
        super(responseEnum, args, message);
    }

    public BusinessException(IResponseEnum responseEnum, Object[] args, String message, Throwable cause) {
        super(responseEnum, args, message, cause);
    }
}
